﻿var Repository = Repository || {};

Repository.Soccer = {

    getLeaguesAndMatches: function (callback) {
        Extension.get('Soccer/GetLeaguesAndMatches', {}, function (data) {
            if (!!callback && typeof callback === 'function') {
                callback(data);
            }
        });
    },
    getMatch: function (id, callback) {
        Extension.get('Soccer/GetMatch', { id: id }, function (data) {
            if (!!callback && typeof callback === 'function') {
                callback(data);
            }
        });
    }

};